# -*- coding: UTF-8 -*-
from selenium import webdriver
from selenium.webdriver.support.wait import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
import time

def searc():
    driver=webdriver.Chrome()
    driver.get("https://www.baidu.com/")
    WebDriverWait(driver,5).until(EC.visibility_of(driver.find_element_by_id("kw")))
    driver.find_element_by_id("kw").send_keys("深圳")
    sel=driver.find_element_by_id("su")
    sel.click()
    time.sleep(5)
    driver.quit()


searc()